module.exports = app => {
    const { STRING, INTEGER, TEXT, DOUBLE, DATE } = app.Sequelize;
    const Content = app.model.define('comments', {
        commentId: { type: INTEGER, primaryKey: true, autoIncrement: true },
        answerId: INTEGER,
        userId: INTEGER,
        userName: STRING,
        avatar: STRING,
        content: TEXT,
        type: STRING,
        hot: STRING,
        isShow: {
            type: INTEGER,
            defaultValue: 1,
            comment: "1展示 0 不展示 "
        },
        dataFlag: {
            type: INTEGER,
            defaultValue: 1,
            comment: "1正常 0 删除 "

        },
        catSort: INTEGER,
        visitorNum: INTEGER,
        created_at: DATE,
        updated_at: DATE,
    });
    return Content;
};

